﻿#ifndef CPointManager_H
#define CPointManager_H



#include <QObject>
#include <QString>
#include <QMenu>
#include "CMeasurePoint.h"

class CPointManager : public QObject {
	Q_OBJECT

public:
	explicit CPointManager(QObject* parent = nullptr);
	virtual ~CPointManager() {}

	// 创建测点
	CMeasurePoint* createPoint(const QString& type, const QString& name, CBaseNode* parent);

	// 创建右键菜单
	QMenu* createMenu(CMeasurePoint* point, QWidget* parent = nullptr);

private slots:
	void onViewData();
	void onSetAttributes();

private:
	CMeasurePoint* m_currentPoint = nullptr;
};
#endif